using System;
using System.ComponentModel;

namespace Grr {

	[TypeConverter (typeof (Grr.TaintedStringConverter))]
	public class TaintedString {
		private string tainted;

		public TaintedString(string tainted)
		{
			this.tainted = tainted;
		}

		public bool IsEmpty
		{
			get { return tainted == String.Empty; }
		}

		public string Tainted
		{
			get { return tainted; }
		}

		public string Clean()
		{
			return StringUtil.Clean(tainted);
		}

		public string CleanNoPunc()
		{
			return StringUtil.CleanNoPunc (tainted);
		}
	}
}


